
// [AsyncFunction]
console.log(async function(){})

// [Function]
console.log(function(){
    return new Promise(resolve => {
        resolve();
    })
})

// Promise { undefined }
console.log(async function(){}())

// Promise { undefined }
console.log(function(){
    return new Promise(resolve => {
        resolve();
    })
}())


// Promise { 4 }
console.log(async function(){
    return 4
}())

// Promise { 4 }
console.log(function(){
    return new Promise(resolve => {
        resolve(4);
    })
}())

